package com.tiger.db.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import lombok.Data;

@Data
@TableName(value = "export_task", autoResultMap = true)
public class ExportTask {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("creator_id")
    private long creatorId;

    @TableField(value = "date_range", typeHandler = JacksonTypeHandler.class)
    private long[] dateRange;

    private String url;

    private Integer status;
    private Integer type;
    private Long createTime;
}